#include "myStdio.h"
int main()
{
    FILE_* fp = fopen_("./log.txt", "w");
    if(fp == NULL)
    {
        return 1;
    }
    const char* str = "hello c ";
    int cnt = 1;
    while(cnt)
    {
        fwrite_(str, strlen(str), fp);
        fflush_(fp);
        cnt++;
        //if(cnt==5) fflush_(fp);
        if(cnt == 10) break;
        sleep(1);
    }
    fclose_(fp);

    return 0;
}
